## This is R code for "The Demand for Insurance: Incorporating the Severity of
## Losing Office into the Insurance Model of Judicial Independence"

## Run all robustness checks
source("Code/02_Robustness_cumsum_wt_low.R")
source("Code/02_Robustness_cumsum_wt_high.R")
source("Code/02_Robustness_roll10.R")
source("Code/02_Robustness_roll10_wt_low.R")
source("Code/02_Robustness_roll10_wt_high.R")
source("Code/02_Robustness_roll20.R")
source("Code/02_Robustness_roll20_wt_low.R")
source("Code/02_Robustness_roll20_wt_high.R")
source("Code/02_Robustness_cross_validation.R")
source("Code/02_Robustness_models_including_components.R")
source("Code/02_Robustness_square_and_threshold_for_competition.R")